package com.smart.seata.stock.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "t_stock")
public class Stock {
    @TableId(value = "oid", type = IdType.INPUT)
    private Long oid;

    @TableField(value = "product_id")
    private Long productId;

    @TableField(value = "quantity")
    private Integer quantity;

    @TableField(value = "`STATUS`")
    private Integer status;

    public static final String COL_OID = "oid";

    public static final String COL_PRODUCT_ID = "product_id";

    public static final String COL_QUANTITY = "quantity";

    public static final String COL_STATUS = "STATUS";
}